/*
 * filename：UserAction.java
 * copyright：Copyright by rocky
 * description: <br>
 */
package com.woolink.per.sys.user.action;

import com.woolink.per.common.BaseAction;
import com.woolink.per.common.Result;
import com.woolink.per.log.syslog.RunLog;
import com.woolink.per.sys.user.service.UserService;

public class UserAction extends BaseAction
{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private RunLog runLog;
    
    private UserService userService;
    
    public String toLogin()
    {
        return FLAG_TOLOGIN;
    }
    
    
    public String queryMenus()
    {
        Result result = userService.queryMenus(request);
        
        resultList = result.getResultList();
        
        return FLAG_LIST;
    }
    
    public String index()
    {
        
        return FLAG_INDEX;
    }
    
    public String sessionTimeout()
    {
        return FLAG_SESSION_TIMEOUT;
    }

    /**
     * @return Returns the userService.
     */
    public UserService getUserService()
    {
        return userService;
    }

    /**
     * @param userService The userService to set.
     */
    public void setUserService(UserService userService)
    {
        this.userService = userService;
    }

    /**
     * @return Returns the runLog.
     */
    public RunLog getRunLog()
    {
        return runLog;
    }

    /**
     * @param runLog The runLog to set.
     */
    public void setRunLog(RunLog runLog)
    {
        this.runLog = runLog;
    }
    
}
